<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %><%--
  Created by IntelliJ IDEA.
  User: dongsong
  Date: 2021/7/20
  Time: 1:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Map<String,Object> map=new HashMap<String,Object>();
    map.put("key1","value1");
    map.put("key2","value2");
    map.put("key3","value3");
    map.put("key4","value4");
    map.put("key5","value5");
    request.setAttribute("m",map);
   /* for(Map.Entry<String,Object> entry :map.entrySet()){}*/

%>
<c:forEach items="${requestScope.m}" var="i">
    ${i.key}=${i.value}<br>


</c:forEach>

</body>
</html>
